/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.andersen.database.entity;

/**
 *
 * @author Corvin
 */
public class BuyingEntity {
    
    private long id;
    private long price;
    private long monthPaySum;
    private long firmPricePart;
    private long ownerId;
    private String description = "";
    
    private EmployeeEntity owner;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getPrice() {
        return price;
    }

    public void setPrice(long price) {
        this.price = price;
    }

    public long getMonthPaySum() {
        return monthPaySum;
    }

    public void setMonthPaySum(long monthPaySum) {
        this.monthPaySum = monthPaySum;
    }

    public long getFirmPricePart() {
        return firmPricePart;
    }

    public void setFirmPricePart(long firmPricePart) {
        this.firmPricePart = firmPricePart;
    }

    public long getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(long ownerId) {
        this.ownerId = ownerId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public EmployeeEntity getOwner() {
        return owner;
    }

    public void setOwner(EmployeeEntity owner) {
        this.owner = owner;
    }

    @Override
    public String toString() {
        return "BuyingEntity{" + "id=" + id + ", price=" + price + ", monthPaySum=" + monthPaySum + ", firmPricePart=" + firmPricePart + ", ownerId=" + ownerId + ", description=" + description + ", owner=" + owner + '}';
    }
    
    
    
}
